module.exports = async (fastify, opts) => {
  fastify.delete(
    '/',
    {
      schema: {
        body: {
          _ids: { type: 'array', items: { type: 'string' } },
        },
      },
    },
    async (request, reply) => {
      const data = await fastify.invokeCloudFunction('delete-image', {
        ...request.body,
      })
      reply.send(data)
    }
  )
}
